home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / usr / lib / ubiquity / plugins / ubi-tasks.py < prev    next >
Text File  |  2009-09-09  |  1KB  |  39 lines

  1. # -*- coding: utf-8; Mode: Python; indent-tabs-mode: nil; tab-width: 4 -*-
  2.  
  3. # Copyright (C) 2009 Canonical Ltd.
  4. # Written by Colin Watson <cjwatson@ubuntu.com>.
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  19.  
  20. from ubiquity.plugin import *
  21.  
  22. NAME = 'tasks'
  23. AFTER = 'network'
  24. WEIGHT = 12
  25.  
  26. class TasksUnfilteredOnly(Exception):
  27.     pass
  28.  
  29. class PageDebconf(PluginUI):
  30.     plugin_title = 'ubiquity/text/tasks_heading_label'
  31.  
  32. # Only supports unfiltered mode.
  33. class Page(Plugin):
  34.     def prepare(self, unfiltered=False):
  35.         if not unfiltered:
  36.             raise TasksFilteredOnly, \
  37.                 "tasks component only usable with debconf frontend"
  38.         return ['tasksel']
  39.